package xc.src.demo;

public class testThread1 extends Thread{
@Override
    public void run(){
    //run方法线程体
    for(int i = 0;i<200;i++){
        System.out.println("我在看代码...");
    }
}

    public static void main(String[] args) {
        //主线程
        testThread1 testThread1 = new testThread1();
        testThread1.start();
        for (int i =0;i<1000;i++){
            System.out.println("我在学习线程"+i);
        }
    }

}
